package com.jjy.dao;

import com.jjy.pojo.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsDao {
  Goods getGoodsById(Long id);
  Goods getGoodsByNo(Long number);
  List<Goods> getAllGoods();
  List<Goods> getGoodsByParams(Goods goods);
  int createGoods(Goods goods);
  int updateGoods(Goods goods);
}
